package io.renren.modules.roadLive.service.impl;

import io.renren.modules.roadLive.dao.RoadLiveDao;
import io.renren.modules.roadLive.entity.RoadLiveEntity;
import io.renren.modules.roadLive.service.RoadLiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author rdawnx
 * @package_name io.renren.modules.roadLive.service.impl
 * @class_name RoadLiveServiceImpl.java
 * @author_email rdawnxhi@163.com
 * @JDK_version 1.8
 * @create_on 2019/07/24 20:57
 */
@Service("roadLiveService")
public class RoadLiveServiceImpl implements RoadLiveService {
    @Autowired
    private RoadLiveDao roadLiveDao;

    @Override
    public RoadLiveEntity queryObject(Integer id){
        return roadLiveDao.queryObject(id);
    }

    @Override
    public List<RoadLiveEntity> queryList(Map<String, Object> map){
        return roadLiveDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return roadLiveDao.queryTotal(map);
    }

    @Override
    public void save(RoadLiveEntity roadAccidents){
        roadLiveDao.save(roadAccidents);
    }

    @Override
    public void update(RoadLiveEntity roadAccidents){
        roadLiveDao.update(roadAccidents);
    }

    @Override
    public void delete(Integer id){
        roadLiveDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids){
        roadLiveDao.deleteBatch(ids);
    }
}
